import { Column, Entity } from 'typeorm';
import { PublicEntity } from '../../public.entity';


@Entity('role')
export class RoleEntity extends PublicEntity {

	@Column({
		type: 'varchar',
		nullable: false,
		length: 50,
		name: 'title',
		comment: '角色名称'
	})
	title: string;


	@Column({
		type: 'varchar',
		nullable: true,
		length: 100,
		name: 'description',
		comment: '角色描素'
	})
	description: string | null;


	@Column({
		type: 'tinyint',
		nullable: true,
		default: () => 1,
		name: 'status',
		comment: '状态1表示正常,0表示不正常'
	})
	status: number | null;
}
